#[link(name = "badarray", kind = "static")]
extern "C" {
    fn reverse_array(arr: *mut i32, size: i32);
}

fn main() {
    let mut arr: [i32; 5] = [1, 2, 3, 4, 5];
    println!("{:?}", &arr);
    //arr.reverse();
    unsafe {
        reverse_array(arr.as_mut_ptr(), arr.len() as i32);
    }
    println!("{:?}", &arr);
}
